import { createBrowserRouter } from 'react-router-dom'
import Calculator from '../pages/Layout/Calculator/index'
import CompanyInfo from '../pages/Layout/CompanyInfo/index'
import NotFound from '../notFound/index'
import GeekLayout from '../pages/Layout/index'

const router = createBrowserRouter([
  {
    path: '/',
    element: <GeekLayout />,
    children: [
      {
        path: '/',
        element: <Calculator />
      },
      {
        path: '/companyInfo',
        element: <CompanyInfo />
      }
    ]
  },
  {
    path: '*',
    element: <NotFound />
  }
])

export default router
